import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';
import '../../MainView/model/main_view_model.dart';
import '../model/normal_config_model.dart';
import '../model/meter_info_model.dart';

class EngineerGasOpenViewState implements Cloneable<EngineerGasOpenViewState> {
  FixListItemModel model;

  /// 1  未接单  3 准备入户维修  4 正在维修中  5 完成维修
  String step;
  ScrollController scrollController = ScrollController();
  MeterInfoModel meterInfoModel;
  List<NormalConfigModel> items;
  List<EngineerMaterList> materList = [];
  String remark = '';
  var signPhoto;
  List orderPhoto = [];
  List logList =[];

  @override
  EngineerGasOpenViewState clone() {
    return EngineerGasOpenViewState()
      ..model = model
      ..remark = remark
      ..items = items
      ..logList = logList
      ..materList = materList
      ..signPhoto = signPhoto
      ..orderPhoto = orderPhoto
      ..meterInfoModel = meterInfoModel
      ..scrollController = scrollController
      ..step = step;
  }
}

EngineerGasOpenViewState initState(Map<String, dynamic> args) {
  EngineerGasOpenViewState state = EngineerGasOpenViewState()
    ..model = args['model'];
  state.step = state.model.status;
  return state;
}
